﻿using System;
using System.ComponentModel.Composition;

namespace AlanAamy.Net.TemperatureConverter.Infrastructure.Frameworks.MVVM
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)]
    public class ExportViewModel : ExportAttribute
    {
        private readonly bool _isStatic;
        public string Name { get; private set; }

        public ExportViewModel(string name, bool isStatic)
            : base("ViewModel")
        {
            _isStatic = isStatic;
            Name = name;
        }
    }

    public interface IViewModelMetadata
    {
        string Name { get; }
    }
}
